package com.ericom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ericom.dao.AuctionDao;
import com.ericom.model.Auction;
import com.ericom.service.AuctionManager;

@Service("auctionManager")
public class AuctionManagerImpl extends GenericManagerImpl<Auction, Long> implements
		AuctionManager {

    AuctionDao auctionDao;
    @Autowired
    public AuctionManagerImpl(AuctionDao auctionDao){
    	super(auctionDao);
    	this.auctionDao=auctionDao;
    }
	public List<Auction> findAuctionByStatus(String status) {

		return auctionDao.findAuctionByStatus(status);
	}

	public List<Auction> findAuctionByValideDate(String valideDate) {

		return auctionDao.findAuctionByValideDate(valideDate);
	}

}
